import { Module } from '@nestjs/common';
import { UserService } from './user.service';
import { UserController } from './user.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import UserExtendEntity from 'src/entities/user-extend.entity';
import { HttpModule } from '@nestjs/axios';
import UserEntity from 'src/entities/user.entity';
import SmsCodeEntity from 'src/entities/smscode.entity';
import AvatarEntity from 'src/entities/avatar.entity';
import UserLittleThingsEntity from 'src/entities/user-little-things.entity';
import UserSignDataEntity from 'src/entities/user-sign-data.entity';
import UserLimitEntity from 'src/entities/user-limit.entity';
import HoroscopeEntity from 'src/entities/horoscope.entity';
import FeedBackEntity from 'src/entities/feed-back.entity';
import FeedBackImageEntity from 'src/entities/feed-back-image.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      UserExtendEntity,
      UserEntity,
      SmsCodeEntity,
      AvatarEntity,
      UserLittleThingsEntity,
      UserSignDataEntity,
      UserLimitEntity,
      HoroscopeEntity,
      FeedBackEntity,
      FeedBackImageEntity
    ]),
    HttpModule
  ],
  controllers: [UserController],
  providers: [UserService]
})
export class UserModule {}
